
import httpInstance from "@/utils/https"

export const  getDetail = (id) => {
        return httpInstance({
            url:'/goods',
            params:{id}
        })
}




//获取热榜商品
export const getHotGoodsAPI = ({id,type,limit = 3}) => {
        return httpInstance({
            url:'/goods/hot',
            params:{
                id,
                type,
                limit
            }
        })
}